-- GENERATED SPELL FOR [Targ] --


function spell0_2420(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2420', 647, 1)
end

function spell1_2420(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8147,pUnit)
pUnit:RegisterEvent('Sorts_2420', 10332, 1)
end

function Sorts_2420(pUnit, Event)
local choix_sorts_2420 = math.random(0, 1)
if choix_sorts_2420 == 0 then
pUnit:RegisterEvent('spell0_2420', 1, 1)
end
if choix_sorts_2420 == 1 then
pUnit:RegisterEvent('spell1_2420', 1, 1)
end
end

function mob2420_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2420', math.random(1500, 3000), 1)
end

function mob2420_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2420_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2420_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2420, 1, 'mob2420_Action')
RegisterUnitEvent(2420, 2, 'mob2420_Leave')
RegisterUnitEvent(2420, 3, 'mob2420_Kill')
RegisterUnitEvent(2420, 4, 'mob2420_Die')
